[Common,PWGCF] EventPlaneHelper: invoke geometry invariant helper once#16444
[Common,PWGCF] EventPlaneHelper: invoke geometry invariant helper once#16444ktf wants to merge 2 commits into
Conversation
|
O2 linter results: ❌ 13 errors, |
GetPhiFT0 and SumQvectors took o2::ft0::Geometry by value, causing a full copy (TObject heap allocation + destruction) on every invocation. SumQvectors is called ~208 times per event, so this was ~14% of CPU in Q-vector trains.
calculateChannelCenter() was called inside GetPhiFT0 on every channel, recomputing all 208 channel positions from scratch each time despite the geometry being constant.
|
Giving there was no follow up, I have split some purely technical improvement (using a const &) from the minor change in the algorithm. I will merge this one if it passes tests. |
|
Error while checking build/O2Physics/o2 for a97b2a1 at 2026-06-08 13:46: Full log here. |
|
Error while checking build/O2Physics/staging for a97b2a1 at 2026-06-08 13:50: Full log here. |
|
Actually the trivial change does not work without the reshuffling of the method. @dsekihat can you follow up on this please? It should be fairly trivial to review. |
|
Dear @ktf , I apologize for my delay. I overlooked automatic notifications. The PR is good for me, too. |
calculateChannelCenter() was called inside
GetPhiFT0 on every channel, recomputing all 208 channel
positions from scratch each time despite the geometry being
constant.